﻿<%@ Page Title="" Language="C#" MasterPageFile="~/adminpanel.master" AutoEventWireup="true" CodeFile="salesreport.aspx.cs" Inherits="salesreport" %>

<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">

        .style2
        {
            width: 247px;
        }
        .style6
        {
            width: 187px;
        }
        .style5
        {
            width: 134px;
        }
        .style3
        {
            width: 94px;
        }
        .style4
        {
            width: 72px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <table width="100%" >
    <tr>
        <td class="style2"  >
                &nbsp;</td>
        <td class="style6" >
            &nbsp;</td>
        <td class="style5"  >
                &nbsp;</td>
        <td class="style3"  >
                &nbsp;</td>
        <td  >
                &nbsp;</td>
        <td  >
                &nbsp;</td>
        <td >
                &nbsp;</td>
        <td>
                &nbsp;</td>
    </tr>
    <tr>
        <td class="style2" >
                &nbsp;</td>
        <td class="style6" >
            <dx:ASPxLabel ID="ASPxLabel3" runat="server" Font-Bold="True" 
                    Font-Names="Tahoma" ForeColor="#0000CC" Text="Report By:" 
                    CssClass="tabListMenuItem">
            </dx:ASPxLabel>
        </td>
        <td class="style5"  >
                &nbsp;</td>
        <td class="style3" >
                &nbsp;</td>
        <td  >
                &nbsp;</td>
        <td  >
                &nbsp;</td>
        <td >
                &nbsp;</td>
        <td>
                &nbsp;</td>
    </tr>
    <tr>
        <td class="style2"  >
                &nbsp;</td>
        <td class="style6" >
            <dx:ASPxRadioButton ID="ASPxRadioButton1" runat="server" Text="Invoice Date" 
                    AutoPostBack="True" GroupName="invoice" 
                    oncheckedchanged="ASPxRadioButton1_CheckedChanged" Height="17px">
            </dx:ASPxRadioButton>
        </td>
        <td align="right" class="style5" >
            <asp:Label ID="Label5" runat="server" Text="From"></asp:Label>
        </td>
        <td class="style3"  >
            <dx:ASPxDateEdit ID="ASPxDateEdit1" runat="server" ClientIDMode="AutoID" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="100px">
                <CalendarProperties>
                    <HeaderStyle Spacing="1px" />
                    <FooterStyle Spacing="4px" />
                </CalendarProperties>
                <ButtonStyle Width="11px">
                </ButtonStyle>
                <ValidationSettings ErrorDisplayMode="Text" ErrorText="Please Select Date" 
                        ErrorTextPosition="Bottom">
                    <ErrorFrameStyle ImageSpacing="4px">
                        <ErrorTextPaddings PaddingLeft="4px" />
                    </ErrorFrameStyle>
                    <RequiredField ErrorText="Please Select Date" IsRequired="True" />
                </ValidationSettings>
            </dx:ASPxDateEdit>
        </td>
        <td align="right"  >
            <asp:Label ID="Label6" runat="server" Text="To"></asp:Label>
        </td>
        <td  >
            <dx:ASPxDateEdit ID="ASPxDateEdit2" runat="server" ClientIDMode="AutoID" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="100px">
                <CalendarProperties>
                    <HeaderStyle Spacing="1px" />
                    <FooterStyle Spacing="4px" />
                </CalendarProperties>
                <ButtonStyle Width="11px">
                </ButtonStyle>
                <ValidationSettings ErrorTextPosition="Bottom">
                    <ErrorFrameStyle ImageSpacing="4px">
                        <ErrorTextPaddings PaddingLeft="4px" />
                    </ErrorFrameStyle>
                    <RequiredField ErrorText="Please Select Date" IsRequired="True" />
                </ValidationSettings>
            </dx:ASPxDateEdit>
        </td>
        <td >
                &nbsp;</td>
        <td>
                &nbsp;</td>
    </tr>
    <tr>
        <td class="style2"  >
                &nbsp;</td>
        <td class="style6" >
            <dx:ASPxRadioButton ID="ASPxRadioButton2" runat="server" Text="Cashier Name" 
                    AutoPostBack="True" GroupName="invoice" 
                    oncheckedchanged="ASPxRadioButton2_CheckedChanged">
            </dx:ASPxRadioButton>
        </td>
        <td class="style5">
            <asp:Label ID="Label2" runat="server" Text="Select Invoice ID"></asp:Label>
        </td>
        <td class="style3">
            <asp:DropDownList ID="DropDownList1" runat="server" 
                    DataSourceID="SqlDataSource1" DataTextField="cashier_Name" DataValueField="cashier_Name" 
                    Width="100px">
            </asp:DropDownList>
        </td>
        <td  >
                &nbsp;</td>
        <td  >
                &nbsp;</td>
        <td >
                &nbsp;</td>
        <td>
                &nbsp;</td>
    </tr>
    <tr>
        <td class="style2"  >
                &nbsp;</td>
        <td class="style6" >
            <dx:ASPxButton ID="ASPxButton1" runat="server" ClientIDMode="AutoID" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                    Text="Generate Report" onclick="ASPxButton1_Click">
            </dx:ASPxButton>
        </td>
        <td class="style5"  >
                &nbsp;</td>
        <td class="style3"  >
                &nbsp;</td>
        <td  >
                &nbsp;</td>
        <td >
                &nbsp;</td>
        <td >
                &nbsp;</td>
        <td>
                &nbsp;</td>
    </tr>
</table>
<table width="100%" >
    <tr>
        <td >
                &nbsp;</td>
        <td width="100%">
            <table >
                <tr>
                    <td class="style4" >
                            &nbsp;</td>
                    <td>
                        <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" 
                    AutoDataBind="true" EnableDatabaseLogonPrompt="False" ToolPanelView="None" 
                                HasCrystalLogo="False" />
                    </td>
                </tr>
                <tr>
                    <td class="style4" >
                            &nbsp;</td>
                    <td>
                            &nbsp;</td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td >
                &nbsp;</td>
        <td width="100%">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:BestlifeDBConnectionString %>" 
                    SelectCommand="SELECT DISTINCT [cashier_Name] FROM [Tbl_Receipt]">
            </asp:SqlDataSource>
        </td>
    </tr>
</table>
</asp:Content>

